//
//  YOProgressView.h
//  YOYOLive
//
//  Created by 王根强 on 16/9/19.
//  Copyright © 2016年 Mac. All rights reserved.
//
//  说明：1、frame 高度被限制 5~100
//       2、进度条progressValue 最大为 YSProgressView的宽度
//
//



#import <UIKit/UIKit.h>

@interface YOProgressView : UIView

/**
 *  进度条高度  height: 5~100
 */
@property (nonatomic) CGFloat progressHeight;

/**
 *  进度值  maxValue:  <= YSProgressView.width
 */
@property (nonatomic) CGFloat progressValue;

/**
 *   动态进度条颜色  Dynamic progress
 */
@property (nonatomic, strong) UIColor *trackTintColor;
/**
 *  静态背景颜色    static progress
 */
@property (nonatomic, strong) UIColor *progressTintColor;




@property (nonatomic, assign) CGFloat progressRoundValue;// 范围: 0 ~ 1

//背景圆环
@property (nonatomic, strong) CAShapeLayer *backCircle;
//前面圆环
@property (nonatomic, strong) CAShapeLayer *foreCircle;

//初始化方法
//size = CGRectMake(背景圆环半径, 背景圆环线宽, 前面圆环半径, 后面圆环线宽)
+ (instancetype)viewWithFrame:(CGRect)frame circlesSize:(CGRect)size WithStrokeColor:(UIColor *)strokeColor;
@end
